package com.hs.hlw.credit.system.business.service;

import com.hs.hlw.credit.system.business.dto.ResponseDto;
import com.hs.hlw.credit.system.data.primary.model.DataSource;

import java.util.List;

/**
 * DataSourceService
 * @author zhb
 * @date 2018/10/25
 */
public interface DataSourceService {
    /**
     * 列表查询
     * @return
     */
    ResponseDto list(Short status);

    /**
     * 新增
     * @param dataSource
     * @return
     */
    ResponseDto add(DataSource dataSource);

    /**
     * 更新
     * @param dataSource
     * @return
     */
    ResponseDto update(DataSource dataSource);

    /**
     * 删除
     * @param idList
     * @return
     */
    ResponseDto delete(List<DataSource> idList);

    /**
     * 更新状态
     * @param list
     * @return
     */
    ResponseDto updateStatus(List<DataSource> list);

    /**
     * 详情
     * @param id
     * @return
     */
    ResponseDto detail(Integer id);
}